Release 10.1A: OpenEdge Data Management:
DataServer for ORACLE
Retrieving results with cursor arguments
You can return result rows from stored procedures using named cursors as arguments. Cursor parameters are
OUTPUTparameters only.Use the following syntax to retrieve result rows:
For example, the following syntax returns rows from the customer table using the cursor named
CUST_CURS:
The DataServer retrieves the result rows and places them in a buffer. Specify the ORACLE cursor where you want to fetch and process result rows by using the
CURSORoption, as the following syntax and code example show:
The previous example code runs the stored procedure,
Note: If multiple cursors are associated with a stored procedure, you must specify a cursor by name when fetching results, otherwise the DataServer returns a run-time error. Always specifyingopen_cust, and displays the results fetched from theCUST_CURScursor.PROC-HANDLEand cursor parameters ensures that your code continues to run if another cursor parameter is added to a stored procedure.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |